package com.bingxue.edu.management.system.model.entity;

import com.bingxue.edu.framework.common.model.BaseEntity;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;


/**
 * 社交账户实体
 *
 * @author panbo
 * @since 2024/07/24 18:12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("base_social_account")
public class SocialAccount extends BaseEntity {

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 来源
     */
    private String source;

    /**
     * 开放id
     */
    private String openId;

    /**
     * 附加信息
     */
    private String metadata;

    /**
     * 上次登录时间
     */
    private LocalDateTime lastLoginTime;
}
